require("lualib_bundle");
__TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["4"] = 5,["5"] = 5,["6"] = 5,["7"] = 10,["8"] = 11,["9"] = 10,["14"] = 16,["18"] = 19,["19"] = 20,["20"] = 19,["21"] = 23,["22"] = 28,["23"] = 29,["24"] = 30,["25"] = 31,["26"] = 32,["28"] = 35,["29"] = 36,["30"] = 37,["31"] = 38,["32"] = 23});
local ____exports = {}
____exports.Handle = __TS__Class()
local Handle = ____exports.Handle
Handle.name = "Handle"
function Handle.prototype.____constructor(self, handle)
    self.handle = handle == nil and ____exports.Handle.initHandle or handle
end
__TS__SetDescriptor(
    Handle.prototype,
    "id",
    {get = function(self)
        return GetHandleId(self.handle)
    end},
    true
)
function Handle.initFromHandle(self)
    return ____exports.Handle.initHandle ~= nil
end
function Handle.getObject(self, handle)
    if not IsHandle(handle) then
        local tb = debug.traceback()
        log.error("Handle.getObject():你传的handle为空或0！")
        log.error(tb)
        return nil
    end
    ____exports.Handle.initHandle = handle
    local newObj = __TS__New(self)
    ____exports.Handle.initHandle = nil
    return newObj
end
return ____exports
